//
//  AppDelegate.m
//  3DTouch
//
//  Created by 蒋林 on 15/12/8.
//  Copyright © 2015年 蒋林. All rights reserved.
//

#import "AppDelegate.h"

@interface AppDelegate ()

@end

@implementation AppDelegate


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    // Override point for customization after application launch.
    UIApplicationShortcutIcon *icon = [UIApplicationShortcutIcon iconWithType:UIApplicationShortcutIconTypeFavorite];
    UIApplicationShortcutItem *shortItem = [[UIApplicationShortcutItem alloc] initWithType:@"点我" localizedTitle:@"点我" localizedSubtitle:@"点我试试" icon:icon userInfo:nil];
    NSArray *shortItems = @[shortItem];
    [[UIApplication sharedApplication] setShortcutItems:shortItems];
    
    return YES;
}

- (void)application:(UIApplication *)application performActionForShortcutItem:(UIApplicationShortcutItem *)shortcutItem completionHandler:(void (^)(BOOL))completionHandler {
    NSLog(@"shortcutItem%@", shortcutItem);
}


@end
